﻿<Window x:Class="BigMailer.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="The Big Mailer" Height="500" Width="700" Loaded="Window_Loaded"
        Closing="Window_Closing" 
        DragEnter="Window_DragEnter" Drop="Window_Drop" AllowDrop="True"
        Icon="/BigMailer;component/Properties/setup.ico" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        mc:Ignorable="d">
    <Window.Resources>
        
    	<Storyboard x:Key="AnimateHostTextStoryboard" AutoReverse="True" RepeatBehavior="Forever">
    		<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="textBlockSaveCode" Storyboard.TargetProperty="(UIElement.BitmapEffect).(OuterGlowBitmapEffect.Opacity)">
    			<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
    			<SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
    			<SplineDoubleKeyFrame KeyTime="00:00:02" Value="1"/>
    		</DoubleAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="textBlockConfigure" Storyboard.TargetProperty="(UIElement.BitmapEffect).(OuterGlowBitmapEffect.Opacity)">
                <SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
                <SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
                <SplineDoubleKeyFrame KeyTime="00:00:02" Value="1"/>
            </DoubleAnimationUsingKeyFrames>
        </Storyboard>
        
    </Window.Resources>
	<Window.Background>
		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FFFFFFFF" Offset="0.406"/>
			<GradientStop Color="#FF98999B" Offset="1"/>
		</LinearGradientBrush>
	</Window.Background>
	<Window.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded">
			<BeginStoryboard 
                Storyboard="{StaticResource AnimateHostTextStoryboard}"/>
		</EventTrigger>
	</Window.Triggers>
    <DockPanel>
        <StackPanel DockPanel.Dock="Left"  Width="100">
            <Image Width="100" Height="181" HorizontalAlignment="Left"  
                   VerticalAlignment="Top" Source="Globe.jpg"/>
            
            <TextBlock TextWrapping="Wrap" FontSize="12" TextAlignment="Center" Margin="5">
                Let's upload something!
            </TextBlock>
            <TextBlock Height="1" HorizontalAlignment="Stretch" Background="Black"></TextBlock>
            <TextBlock Margin="5">
                <Hyperlink x:Name="linkConfigure" Click="linkConfigure_Click">
                    <InlineUIContainer>
                		<TextBlock Name="textBlockConfigure">
                            <TextBlock.BitmapEffect>
                				<OuterGlowBitmapEffect x:Name="glowEffectConfig" GlowColor="#FFFFDA55" GlowSize="3"/>
                			</TextBlock.BitmapEffect>
                            <Run Text="Configure me"/>
                        </TextBlock>
                	</InlineUIContainer>
            </Hyperlink>
            </TextBlock>
            <TextBlock Margin="5">
                <Hyperlink x:Name="linkSaveServerCode" 
                           Click="linkSaveServerCode_Click">
                    <InlineUIContainer>
                		<TextBlock Name="textBlockSaveCode">
                            <TextBlock.BitmapEffect>
               				    <OuterGlowBitmapEffect x:Name="glowEffectSave" GlowColor="#FFFFDA55" GlowSize="3"/>
                			</TextBlock.BitmapEffect>
                            <Run Text="Host Service"/>
                        </TextBlock>
                	</InlineUIContainer>
            </Hyperlink>
            </TextBlock>
            <TextBlock Margin="5"><Hyperlink x:Name="linkAbout" Click="linkAbout_Click"><Run Text="About me"/></Hyperlink></TextBlock>
        </StackPanel>
        <TextBlock Background="Black" Width="1" VerticalAlignment="Stretch"></TextBlock>
        <DockPanel>
            <StackPanel Margin="5" DockPanel.Dock="Top" Orientation="Horizontal">
                <TextBlock Margin="5" VerticalAlignment="Center" Text="Select one or more files to upload: " />
                 <TextBlock Margin="5" Name="uploadBlock">
                    <Hyperlink Name="uploadLink" Click="buttonUpload_Click">Upload ...</Hyperlink>
                </TextBlock>
                <TextBlock Margin="5" Name="refreshBlock">
                    <Hyperlink Name="refreshLink" Click="refreshLink_Click">Refresh List</Hyperlink>
                </TextBlock>
                <TextBlock Margin="5" Name="disableDeleteBlock">
                    <Hyperlink Name="disableDeleteLink" Click="disableDeleteLink_Click">Disable Delete Warning</Hyperlink>
                </TextBlock>
                <TextBlock Margin="5"  Name="enableDeleteBlock" Visibility="Collapsed">
                    <Hyperlink Name="enableDeleteLink" Click="disableDeleteLink_Click">Enable Delete Warning</Hyperlink>
                </TextBlock>
            </StackPanel>

            <ListBox x:Name="listBoxUploads" Margin="5" Background="{x:Null}" BorderBrush="{x:Null}" />
        </DockPanel>
    </DockPanel>
</Window>
